package com.band.mapper;

import com.band.entity.Student;
import com.band.entity.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    /**
     * 根据班级id查询员工列表
     * @param id
     * @return
     */
    List<Student> selectByClazzId(Integer id);

    /**
     * 查询员工列表
     * @param param
     * @return
     */
    List<Student> list(StudentQueryParam param);

    /**
     * 批量删除员工
     * @param ids
     */
    void delete(List<Integer> ids);

    /**
     * 新增员工
     * @param student
     */
    void insert(Student student);

    Student select(Integer id);

    void update(Student student);

    void violantan(Integer id, Short score);

    @MapKey("")
    List<Map> studentDegreeData();
}
